package com.fled.itsmbigscreen.service;


import com.fled.itsmbigscreen.dto.FindHighBugClient.FindHighBugClientDto;
import com.fled.itsmbigscreen.dto.GroupAddDto;
import com.fled.itsmbigscreen.dto.GroupDelDto;
import com.fled.itsmbigscreen.dto.GroupEditNameDto;
import com.fled.itsmbigscreen.dto.clientInfoDto.ClientListDto;
import com.fled.itsmbigscreen.dto.clientListDto.ClientListData;
import com.fled.itsmbigscreen.dto.groupDto.HuorongBaseList;
import com.fled.itsmbigscreen.vo.DefVo;
import com.fled.itsmbigscreen.vo.GroupAddVo;
import com.fled.itsmbigscreen.vo.getDefCenter;

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface HuorongService {

    /**
     * 获取所有分组
     * @return
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     */
    HuorongBaseList GroupList () throws NoSuchAlgorithmException, InvalidKeyException;


    /**
     * 获取所有设备及信息
     * @param pageNum
     * @param pageSize
     * @return
     */
    ClientListDto ClientListWithInfo(Integer pageNum, Integer pageSize) throws NoSuchAlgorithmException, InvalidKeyException;

    /**、
     * 获取终端列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    ClientListData ClientList(Integer pageNum, Integer pageSize) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 根据设备ids获取详细信息
     * @param clientIds
     * @return
     */
    ClientListDto clientIds(String clientIds) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 查询高危漏洞设备
     * @param pageNum
     * @param pageSize
     * @return
     */
    FindHighBugClientDto findHighBugClient(Integer pageNum, Integer pageSize) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 创建分组
     * @param groupAddDto
     * @return
     */
    GroupAddVo GroupAdd(GroupAddDto groupAddDto) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 删除分组
     * @param groupDelDto
     */
    void GroupDel(GroupDelDto groupDelDto) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 修改分组名称
     * @param groupEditNameDto
     */
    void GroupEditName(GroupEditNameDto groupEditNameDto) throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 获取所有在线设备数量
     * @return
     */
    Integer onlineNum() throws NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 获取今日防御数量
     * @return
     */
    int getDefNum();

    /**
     * 获取防护中心历史
     * @return
     */
    List<DefVo> getDefCenter();
}
